$(window).load(
	function()
	{
		if (!window.ERPObj)
		{
			window.ERPObj = (
				function ()
				{
					ERPObj = 
					{
						version : '0.0.1' , 
				
						status : 'unload',		
						intFlag : 0,
						
						getURL : function()
						{
							var strHrefPath = window.location.href ;
							aryPath = strHrefPath.split("/");
							
							return aryPath[aryPath.length - 1];
						},
						
						getPageURL : function()
						{
							var strHrefPath = window.location.href ;
							aryPath = strHrefPath.split("#");
							strPath = "";
							
							return aryPath[0];
						},
						
						aryItemsLoad : [
							"js/normal/core/env.js" , "js/normal/core/basic.js" , "js/normal/core/normal.js"
						],
						
						loadNext : function()
						{
							var intFlag = ERPObj.intFlag;
							ERPObj.intFlag = intFlag + 1;
							$("head").prepend("<script src='"+ERPObj.aryItemsLoad[intFlag]+"' ></script>");
						},
						
						init : function()
						{
							ERPObj.loadNext();							
						}	
					}
					
					ERPObj.init();
					
					return ERPObj;
				}
			)();
		
		}
	}
);

